﻿namespace BattleNet.D3.Sample
{
    class Program
    {
        static void Main(string[] args)
        {
            /// Set Caching Mode
            D3ServiceClient.CacheSetting = System.ServiceModel.CacheSetting.AlwaysOn;

            /// Create D3 Service Client
            using (D3ServiceClient serviceClient = new D3ServiceClient(Regions.EU, Localizations.de_DE))
            {
                /// Request a Profile
                Profile profile = serviceClient.GetProfile("Asesjix", 2766);
                /// Request a Hero                    
                Hero hero = serviceClient.GetHero("Asesjix", 2766, profile.Heroes[0].Id);
                /// Request Item Information
                ItemInformation itemInformation = serviceClient.GetItemInformation(hero.Items.MainHand.TooltipParams);
                /// Request Follower Information
                FollowerInformation followerInformation = serviceClient.GetFollowerInformation(FollowerTypes.enchantress);
                /// Request Artisan Information
                ArtisanInformation artisanInformation = serviceClient.GetArtisanInformation(ArtisanTypes.blacksmith);
            }
        }
    }
}
